package com.sikaryofficial.adaptermq.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 商品关联对象 goods_relation_t
 *
 * @author wuweihong
 * @date 2024-09-23
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@TableName("goods_relation_t")
public class GoodsRelation implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 商品关联ID
     */
    @TableId(type = IdType.ASSIGN_ID, value = "goods_relation_id")
    private Long goodsRelationId;
    /**
     * 商品ID
     */
    private Long goodsId;
    /**
     * 最小下单数量
     */
    private Integer minQuantity;
    /**
     * 口味
     */
    private String tasteName;
    /**
     * 商品颜色:''Red'', ''Green'', ''Blue''
     */
    private String goodsColor;
    /**
     * 产品编号
     */
    private String productNo;
    /**
     * 租户号
     */
    private Integer tenantId;
    /**
     * 乐观锁
     */
    private Integer revision;
    /**
     * 创建人
     */
    private Long createdBy;
    /**
     * 创建时间
     */
    private Date createdTime;
    /**
     * 更新人
     */
    private Long updatedBy;
    /**
     * 更新时间
     */
    private Date updatedTime;
    /**
     * 删除版本：默认为0；删除则赋值当前记录主键ID
     */
    private Long deletedVersion;
}
